package com.hsq.ndmall.auth.feign;

import com.hsq.ndmall.auth.dto.MemberDto;
import com.hsq.ndmall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author 黄四清
 * @version 1.0.0
 * @ClassName UmsFegin.java
 * @Description TODO
 * @createTime 2021年08月24日 18:31:00
 */
@FeignClient(value = "user-service")
public interface UmsFeign {

    @GetMapping("user/member/list")
    R list(@RequestParam Map<String, Object> params);

    @PostMapping("user/member/save")
    R save(@RequestBody MemberDto member);

    @PutMapping("user/member/update")
    R update(@RequestBody MemberDto member);
}
